import { Button, Upload } from 'antd';

// originFileObj 简单文件上传
const Md5 = () => {
  const uploadProps = {
    multiple: true,
    // request配置了prefix，所以不用写api这一层。但是upload不走request
    action: '/api/upload',
    name: 'fileUpload',
  };

  return (
    <Upload {...uploadProps}>
      <Button>上传文件</Button>
    </Upload>
  );
};
export default Md5;
